import { GetDirectoryContentsResult } from "../get-directory-contents-result";
import { IFileInfo } from "../ifile-info";

export interface FileInfo extends IFileInfo {
  /**
   *
   * @type {string}
   * @memberof IFileInfo
   */
  fileType?: String;
}

/**
 * 继承自GetDirectoryContentsResult，并将fileInfos属性覆写
 * @export
 * @interface GetDirectoryContentsResultExt
 */
export interface GetDirectoryContentsResultExt
  extends Omit<GetDirectoryContentsResult, "fileInfos"> {
  /**
   *
   * @type {Array<FileInfo>}
   * @memberof GetDirectoryContentsResult
   */
  fileInfos?: Array<FileInfo> | null;
}
